package com.njtech.pet.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by m1870 on 2020/5/23.
 */
@Controller
@RequestMapping("")
public class AdminController {
    //首页
    @RequestMapping("/homeAdmin")
    public String home() {
        return "/backstage/home_admin";
    }
    //登录
    @RequestMapping("/loginAdmin")
    public String login() {
        return "backstage/login_admin";
    }

    //用户管理员
    @RequestMapping("/admin/userList")
    public String userList() {
        return "backstage/member-list";
    }

    //用户管理员添加
    @RequestMapping("/admin/userAdd")
    public String userAdd() {
        return "backstage/member-add";
    }

    //用户管理员修改
    @RequestMapping("/admin/userEdit")
    public String userEdit() {
        return "backstage/member-edit";
    }

    //商品管理员
    @RequestMapping("/admin/itemList")
    public String itemList() {
        return "backstage/product-list";
    }
    //商品管理员添加
    @RequestMapping("/admin/itemAdd")
    public String itemAdd() {
        return "backstage/product-add";
    }

    //商品管理员修改
    @RequestMapping("/admin/itemEdit")
    public String itemEdit() {
        return "backstage/product-edit";
    }

    //权限管理员
    @RequestMapping("/admin/powerList")
    public String powerList() {
        return "backstage/admin-list";
    }
    //权限管理员添加
    @RequestMapping("/admin/powerAdd")
    public String powerAdd() {
        return "backstage/admin-add";
    }

    //权限管理员修改
    @RequestMapping("/admin/powerEdit")
    public String powerEdit() {
        return "backstage/admin-edit";
    }

    //积分管理员
    @RequestMapping("/admin/creditList")
    public String creditList() {
        return "backstage/kiss-list";
    }
    //积分管理员给用户添加
    @RequestMapping("/admin/creditAdd")
    public String creditAdd() {
        return "backstage/kiss-add";
    }



    //积分管理员给删除积分
    @RequestMapping("/admin/creditDelete")
    public String creditDelete() {
        return "backstage/kiss-delete";
    }

    //订单管理员
    @RequestMapping("/admin/billList")
    public String billList() {
        return "backstage/order-list";
    }
    //订单管理员修改
    @RequestMapping("/admin/billEdit")
    public String billEdit() {
        return "backstage/order-edit";
    }
    //统计数据
    @RequestMapping("/admin/statistics")
    public String statistics() {
        return "backstage/welcome";
    }
    //显示优惠券
    @RequestMapping("/admin/couponList")
    public String couponList(){
        return "backstage/level-list";
    }
//修改优惠券
    @RequestMapping("/admin/couponEdit")
    public String couponEdit(){
        return "backstage/level-edit";
    }
    //添加优惠权
    @RequestMapping("/admin/couponAdd")
    public String couponAdd(){
        return "backstage/level-add";
    }
    //欢迎
    @RequestMapping("/admin/welcome")
    public String welcome(){
        return "backstage/welcome-admin";
    }
}
